age =[22, 18]

if age[0] >= 21 and age[1] >= 21: # and 同 &&
    print(True)
else:
    print(False)

if age[0] >= 21 or age[1] >= 21: # or 同 ||
    print(True)
else:
    print(False)

if 22 in age: # in 判断特定值是否在列表中
    print(True)
else:
    print(False)

if 22 not in age: # not in 判断特定值是否不在列表中
    print(True)
else:
    print(False)